/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mycompany.ingsoc2;
import java.sql.Connection;
import java.sql.SQLException;
/**
 *
 * @author sebastian
 */
public class ConnectionHSQL {    
    public Connection createConn() throws SQLException{    
        Connection conn;
        ConnectionFactory mifactory=new ConnectionFactory();
        conn=mifactory.createConn("jdbc:hsqldb:mem:videoclubdb");
        return conn;
        
    }
}
